package com.engine4cloud.tdf.education.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.engine4cloud.tdf.common.core.util.TenantTable;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 公益活动
 *
 * @author wenjie
 * @date 2024-08-13 11:16:58
 */
@Data
@TenantTable
@TableName("edu_public_welfare_activities")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "公益活动")
public class EduPublicWelfareActivitiesEntity extends Model<EduPublicWelfareActivitiesEntity> {


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 公益活动编号
     */
    @Schema(description = "公益活动编号")
    private String hdbh;

    /**
     * 活动开始时间
     */
    @Schema(description = "活动开始时间")
    private LocalDateTime hdkssj;

    /**
     * 活动结束时间
     */
    @Schema(description = "活动结束时间")
    private LocalDateTime hdjssj;

    /**
     * 活动时长
     */
    @Schema(description = "活动时长")
    private BigDecimal hdsc;

    /**
     * 活动地点
     */
    @Schema(description = "活动地点")
    private String hddd;

    /**
     * 活动内容
     */
    @Schema(description = "活动内容")
    private String hdnr;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}